package com.shanghaionstar.mro;

import android.app.ProgressDialog;

import com.onstar.cn.framework.mvp.base.core.BaseFragment;
import com.shanghaionstar.R;

public class MrOBaseFragment extends BaseFragment {
    @Override
    public int getLayoutId() {
        return 0;
    }

    public void back() {
        ((MrOActivity) getActivity()).hideSoftInput();
        super.back();
    }

    /**
     * use to deal back key event on single fragment
     *
     * @return false:activity deal back key, true:consume back key event
     * @author zhangkai
     */
    public boolean onBackPressed() {
        return false;
    }
    public ProgressDialog showLoadProgress() {
		ProgressDialog progDialog = new ProgressDialog(getActivity());
		progDialog.setMessage(getString(R.string.waiting));
		return progDialog;
	}
}
